// Interface

// Module
module Soict
{
	export class Alert
	{
		private container : JQuery;

	
		public init(id: string)
		{
			this.container = $('#' + id);
		}

		public show( message:string)
		{
			
			var item = $('<div data-alert="" class="alert-box success">' + message + '<a href="#" class="close">&times;</a></div>');
			this.container.append(item);
		}

		public error(message: string)
		{
			var item = $('<div data-alert="" class="alert-box alert">' + message + '<a href="#" class="close">&times;</a></div>');
			this.container.append(item);
		}

		public warn(message: string)
		{
			var item = $('<div data-alert="" class="alert-box warning">' + message + '<a href="#" class="close">&times;</a></div>');
			this.container.append(item);
		}
	}
}

